<!--[pnajaxheader modname=crpCalendar filename=crpcalendar.js noscriptaculous=true nobehaviour=true]-->
<!--[include file="crpcalendar_admin_menu.htm"]-->
<div class="pn-admincontainer">
<div class="pn-adminpageicon"><!--[pnimg modname=core src=configure.gif set=icons/large alt='_MODIFYCONFIG' altml=true]--></div>
<h2><!--[pnml name="_MODIFYCONFIG" html=1]--></h2>
<form class="pn-adminform" action="<!--[pnmodurl modname="crpCalendar" type="admin" func="updateconfig"]-->" method="post" enctype="application/x-www-form-urlencoded">
<div>
	<input type="hidden" name="authid" value="<!--[pnsecgenauthkey module="crpCalendar"]-->" />
	<fieldset>
		<legend><!--[pnml name=_CRPCALENDAR_GENERAL html=1]--></legend>
		<div class="pn-adminformrow">
			<label for="crpcalendar_enablecategorization"><!--[pnml name="_ENABLECATEGORIZATION" html=1]--></label>
			<input id="crpcalendar_enablecategorization" type="checkbox" name="enablecategorization"<!--[if $enablecategorization]--> checked="checked"<!--[/if]--> />
		</div>
		<div class="pn-adminformrow">
			<label for="crpcalendar_itemsperpage"><!--[pnml name="_ITEMSPERPAGE" html=1]--></label>
			<input id="crpcalendar_itemsperpage" type="text" name="itemsperpage" size="3" value="<!--[$itemsperpage|pnvarprepfordisplay]-->" />
		</div>
		<div class="pn-adminformrow">
			<label for="crpcalendar_file_dimension"><!--[pnml name="_CRPCALENDAR_FILE_DIMENSION" html=1]--></label>
			<input id="crpcalendar_file_dimension" type="text" name="file_dimension" maxlength="6" size="7" value="<!--[$file_dimension|pnvarprepfordisplay]-->" />
		</div>
		<div class="pn-adminformrow">
			<label for="crpcalendar_document_dimension"><!--[pnml name="_CRPCALENDAR_DOCUMENT_DIMENSION" html=1]--></label>
			<input id="crpcalendar_document_dimension" type="text" name="document_dimension" maxlength="6" size="7" value="<!--[$document_dimension|pnvarprepfordisplay]-->" />
		</div>
		<div class="pn-adminformrow">
			<label for="crpcalendar_notification"><!--[pnml name="_CRPCALENDAR_NOTIFICATION_MAIL" html=1]--></label>
			<input id="crpcalendar_notification" type="text" name="crpcalendar_notification" maxlength="64" size="32" value="<!--[$crpcalendar_notification|pnvarprepfordisplay]-->" />
		</div>
		<div class="pn-adminformrow">
			<label for="crpcalendar_enable_partecipation"><!--[pnml name="_CRPCALENDAR_ENABLE_PARTECIPATION" html=1]--></label>
			<input id="crpcalendar_enable_partecipation" type="checkbox" name="enable_partecipation"<!--[if $enable_partecipation]--> checked="checked"<!--[/if]--> />
		</div>		
		<div class="pn-adminformrow">
			<label for="crpcalendar_mandatory_description"><!--[pnml name="_CRPCALENDAR_MANDATORY_DESCRIPTION"]--></label>
			<input id="crpcalendar_mandatory_description" type="checkbox" name="mandatory_description"<!--[if $mandatory_description]--> checked="checked"<!--[/if]--> />
		</div>
		<div class="pn-adminformrow">
			<label for="crpcalendar_submitted_status"><!--[pnml name="_CRPCALENDAR_SUBMITTED_STATUS" html=1]--></label>
			<select id="crpcalendar_submitted_status" name="submitted_status">
				<option value="A"<!--[if $submitted_status eq 'A']--> selected="selected"<!--[/if]-->><!--[pnml name="_ACTIVE" html=1]--></option>
				<option value="P"<!--[if $submitted_status eq 'P']--> selected="selected"<!--[/if]-->><!--[pnml name="_CRPCALENDAR_PENDING"]--></option>
				<option value="R"<!--[if $submitted_status eq 'R']--> selected="selected"<!--[/if]-->><!--[pnml name="_CRPCALENDAR_REJECTED" html=1]--></option>
			</select>
		</div>
		<div class="pn-adminformrow">
			<label for="crpcalendar_multiple_insert"><!--[pnml name="_CRPCALENDAR_MULTIPLE_INSERT"]--></label>
			<input id="crpcalendar_multiple_insert" type="checkbox" name="multiple_insert"<!--[if $multiple_insert]--> checked="checked"<!--[/if]--> />
		</div>
	</fieldset>
	<fieldset>
		<legend><!--[pnml name=_CRPCALENDAR_VISUALIZATION html=1]--></legend>
		<div class="pn-adminformrow">
			<label for="crpcalendar_theme"><!--[pnml name="_CRPCALENDAR_THEME]--></label>
	        <!--[html_options options=$theme_options id=crpcalendar_theme name=crpcalendar_theme selected=$crpcalendar_theme]-->
		</div>
		<div class="pn-adminformrow">
			<label for="crpcalendar_start_year"><!--[pnml name="_CRPCALENDAR_START_YEAR" html=1]--></label>
			<input id="crpcalendar_start_year" type="text" name="crpcalendar_start_year" maxlength="4" size="7" value="<!--[$crpcalendar_start_year|pnvarprepfordisplay]-->" />
		</div>
		<div class="pn-adminformrow">
			<label for="crpcalendar_daylist_categorized"><!--[pnml name="_CRPCALENDAR_DAYLIST_CATEGORIZED" html=1]--></label>
			<input id="crpcalendar_daylist_categorized" type="checkbox" name="daylist_categorized"<!--[if $daylist_categorized]--> checked="checked"<!--[/if]--> />
		</div>
		<div class="pn-adminformrow">
			<label for="crpcalendar_yearlist_categorized"><!--[pnml name="_CRPCALENDAR_YEARLIST_CATEGORIZED" html=1]--></label>
			<input id="crpcalendar_yearlist_categorized" type="checkbox" name="yearlist_categorized"<!--[if $yearlist_categorized]--> checked="checked"<!--[/if]--> />
		</div>
	</fieldset>	
	<fieldset>
		<legend><!--[pnml name=_CRPCALENDAR_IMAGES html=1]--></legend>		
		<div class="pn-adminformrow">
			<label for="crpcalendar_gd_version"><!--[pnml name="_CRPCALENDAR_GD_AVAILABLE" html=1]--></label>
			<input id="crpcalendar_gd_version" type="text" name="gd_version" disabled="disabled" size="32" value="<!--[$gd_version.string|pnvarprepfordisplay]-->" />
			<!--[if $gd_version.value >= 2]-->
				<!--[pnimg modname=core src=button_ok.gif set=icons/small altml=true titleml=true alt="_OK" title="_OK"]-->
			<!--[else]-->
				<!--[pnimg modname=core src=editdelete.gif set=icons/small altml=true titleml=true alt="_ERROR" title="_ERROR"]-->
			<!--[/if]-->
		</div>
		<div class="pn-adminformrow pn-hide" id="crpcalendar_use_browser">
			<label><!--[pnml name="_CRPCALENDAR_USE_BROWSER" html=1]--></label>
			<input type="hidden" name="crpcalendar_use_gd" value="0" />
		</div>
		<div class="pn-adminformrow">
			<label for="crpcalendar_use_gd"><!--[pnml name="_CRPCALENDAR_USE_GD" html=1]--></label>
			<input id="crpcalendar_use_gd" type="checkbox" name="crpcalendar_use_gd"<!--[if $crpcalendar_use_gd]--> checked="checked"<!--[/if]--> />
		</div>
		<div class="pn-adminformrow">
			<label for="crpcalendar_userlist_image"><!--[pnml name="_CRPCALENDAR_USERLIST_IMAGE" html=1]--></label>
			<input id="crpcalendar_userlist_image" type="checkbox" name="crpcalendar_userlist_image"<!--[if $crpcalendar_userlist_image]--> checked="checked"<!--[/if]--> />
		</div>		
		<div class="pn-adminformrow">
			<label for="crpcalendar_image_width"><!--[pnml name="_CRPCALENDAR_IMAGE_WIDTH" html=1]--></label>
			<input id="crpcalendar_image_width" type="text" name="image_width" maxlength="3" size="4" value="<!--[$image_width|pnvarprepfordisplay]-->" />
		</div>
		<div class="pn-adminformrow">
			<label for="userlist_width"><!--[pnml name="_CRPCALENDAR_USERLIST_WIDTH" html=1]--></label>
			<input id="userlist_width" type="text" name="userlist_width" maxlength="3" size="4" value="<!--[$userlist_width|pnvarprepfordisplay]-->" />
		</div>
	</fieldset>
	<fieldset>
		<legend><!--[pnml name=_CRPCALENDAR_OTHER_MODULES html=1]--></legend>
		<div class="pn-adminformrow">
			<!--[if pnModAvailable('locations')]--><!--[assign var="locations_avail" value="1"]--><!--[/if]-->
			<label for="crpcalendar_enable_locations"><!--[pnml name="_CRPCALENDAR_ENABLE_LOCATIONS" html=1]--></label>
			<input id="crpcalendar_enable_locations" type="checkbox" name="enable_locations"<!--[if $enable_locations]--> checked="checked"<!--[/if]--> />
		</div>
		<div class="pn-adminformrow">
			<!--[if pnModAvailable('formicula')]--><!--[assign var="formicula_avail" value="1"]--><!--[/if]-->
			<label for="crpcalendar_enable_formicula"><!--[pnml name="_CRPCALENDAR_ENABLE_FORMICULA" html=1]--></label>
			<input id="crpcalendar_enable_formicula" type="checkbox" name="enable_formicula"<!--[if $enable_formicula]--> checked="checked"<!--[/if]--> />
		</div>
	</fieldset>
	<fieldset>
		<legend><!--[pnml name=_PERMALINKS html=1]--></legend>
		<div class="pn-adminformrow">
			<label for="crpcalendar_addcategorytitletopermalink"><!--[pnml name="_ADDCATEGORYTITLETOPERMALINK" html=1]--></label>
			<input id="crpcalendar_addcategorytitletopermalink" type="checkbox" name="addcategorytitletopermalink"<!--[if $addcategorytitletopermalink]--> checked="checked"<!--[/if]--> />
		</div>
	</fieldset>
	<fieldset>
		<legend><!--[pnml name=_CRPCALENDAR_RSS html=1]--></legend>
		<div class="pn-adminformrow">
			<label for="crpcalendar_enable_rss"><!--[pnml name="_CRPCALENDAR_ENABLE_RSS" html=1]--></label>
			<input id="crpcalendar_enable_rss" type="checkbox" name="crpcalendar_enable_rss"<!--[if $crpcalendar_enable_rss]--> checked="checked"<!--[/if]--> />
		</div>
		<div class="pn-adminformrow">
			<label for="crpcalendar_show_rss"><!--[pnml name="_CRPCALENDAR_SHOW_RSS" html=1]--></label>
			<input id="crpcalendar_show_rss" type="checkbox" name="crpcalendar_show_rss"<!--[if $crpcalendar_show_rss]--> checked="checked"<!--[/if]--> />
		</div>
		<div class="pn-adminformrow">
			<label for="crpcalendar_rss"><!--[pnml name="_CRPCALENDAR_USE_RSS" html=1]--></label>
			<div id ="crpcalendar_rss">
				<input id="crpcalendar_rss_1" type="radio" name="crpcalendar_rss" value="rss1"<!--[if $crpcalendar_rss eq "rss1"]--> checked="checked"<!--[/if]--> /> <!--[pnml name="_CRPCALENDAR_RSS1" html=1]-->
				<input id="crpcalendar_rss_2" type="radio" name="crpcalendar_rss" value="rss2"<!--[if $crpcalendar_rss eq "rss2"]--> checked="checked"<!--[/if]--> /> <!--[pnml name="_CRPCALENDAR_RSS2" html=1]-->
				<input id="crpcalendar_rss_atom" type="radio" name="crpcalendar_rss" value="atom"<!--[if $crpcalendar_rss eq "atom"]--> checked="checked"<!--[/if]--> /> <!--[pnml name="_CRPCALENDAR_ATOM" html=1]-->
		</div>
	</fieldset>
    <!--[pnmodcallhooks hookobject=module hookaction=modifyconfig module=crpCalendar]-->
    <div class="pn-adminformrow pn-adminformbuttons">
    <a href="<!--[pnmodurl modname=crpCalendar type=admin func=view]-->"><!--[pnimg modname=core src=button_cancel.gif set=icons/small altml=true titleml=true alt="_CANCEL" title="_CANCEL"]--></a>
    <!--[pnbutton src=button_ok.gif set=icons/small alt="_UPDATECONFIG" title="_UPDATECONFIG"]-->
    </div>
</div>
</form>

<script type="text/javascript">
	Event.observe(window, 'load', function(){crpCalendarConfigInit('<!--[$gd_version.value]-->','<!--[$locations_avail]-->','<!--[$formicula_avail]-->');}, false);
</script>

</div>